﻿<link href="~/Content/bootstrap.min.css" rel="stylesheet" type="text/css">
<script src="~/Scripts/jquery-2.1.4.min.js"></script>
<script src="~/Scripts/bootstrap.min.js"></script>

<link href="~/Content/styles.css" rel="stylesheet" type="text/css">
  
<script src="~/Scripts/jquery.min.js"></script>
<link href="~/Content/bootstrap.min.css" rel="stylesheet">
<script src="~/Scripts/bootstrap.min.js"></script>
<script src="~/Scripts/function.js"></script>


<nav class="navbar navbar-default navbar-fixed-top">
    <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="/" style="font-style:italic;"><b>HOAINAM.VN</b></a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav" style="margin-left:35px;">
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Thông Báo</a>
                </li>
                
                <li class="dropdown">
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Tin Nhắn<span class="caret"></span></a>
                    <ul class="dropdown-menu">
                        <li><a href="#">Hộp Thư Đến</a></li>
                        <li role="separator" class="divider"></li>
                        <li><a href="#">Hộp Đã Gữi</a></li>
                        @*<li>@Html.ActionLink("Sản Phẩm", "Product", "ProductAdmin")</li>
                        <li role="separator" class="divider"></li>
                        <li>@Html.ActionLink("Chi Tiết Sản Phẩm", "ProductDetails", "ProductDetailsAdmin")</li>*@
                    </ul>
                </li>
                <li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Tài Khoàn</a>
                </li>
                @*<li>
                    <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">Giúp Đỡ</a>
                </li>*@
                </ul>
            <form class="navbar-form navbar-left" role="search">
                <div class="form-group">
                    <input type="text" class="form-control" placeholder="Nội Dung Tìm Kiếm">
                </div>
                <button type="submit" class="btn btn-default">Tìm Kiếm</button>
            </form>
            <div><img src="~/Content/images/loading.gif" style="width:350px;float:left;height:50px;"></div>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown">
                    

                    @if (Request.Cookies["username"] == null)
                    {

                        if (Session["username"] == null)
                        {
                            
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">@Html.ActionLink("ĐĂNG NHẬP", "Index", "Account") <span class="caret"></span></a>

                        }
                        else
                        {
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="glyphicon glyphicon-user"></i> Welcome @Session["username"]<span class="caret"></span></a>

                            <ul class="dropdown-menu">
                                <li><a href="/"> Trang Chủ</a></li>
                                <li role="separator" class="divider"></li>
                                <li><a href="@Url.Action("Logout","Account")"><i class="glyphicon glyphicon-log-out"></i> Đăng Xuất</a></li>
                            </ul>
                        }

                    }
                    else
                    {
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><i class="glyphicon glyphicon-user"></i> Welcome @Request.Cookies["username"].Value<span class="caret"></span></a>
                        <ul class="dropdown-menu">
                            <li><a href="/"><i class="glyphicon glyphicon-home"></i> Trang Chủ</a></li>
                            <li role="separator" class="divider"></li>
                            <li><a href="@Url.Action("Logout","Account")"><i class="glyphicon glyphicon-log-out"></i> Đăng Xuất</a></li>
                        </ul>
                    }
                </li>
       
        </ul>
    </div><!-- /.navbar-collapse -->
    </div><!-- /.container-fluid -->
</nav>